g4tools  5.4.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
tools::sg::anim_event Class Reference
Inheritance diagram for tools::sg::anim_event:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::anim_event:
Collaboration graph
[legend]

Public Types

typedef uint64 num_t
 

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual eventcopy () const
 
 anim_event (num_t a_secs, num_t a_micro_secs)
 
virtual ~anim_event ()
 
 anim_event (const anim_event &a_from)
 
anim_eventoperator= (const anim_event &a_from)
 
num_t seconds () const
 
num_t micro_seconds () const
 
void set_some_found (bool a_v)
 
bool some_found () const
 
- Public Member Functions inherited from tools::sg::event
 event ()
 
virtual ~event ()
 
 event (const event &)
 
eventoperator= (const event &)
 

Static Public Member Functions

static cid id_class ()
 
- Static Public Member Functions inherited from tools::sg::event
static cid id_class ()
 

Protected Attributes

num_t m_secs
 
num_t m_micro_secs
 
bool m_some_found
 

Detailed Description

Definition at line 256 of file event.

Member Typedef Documentation

◆ num_t

Definition at line 274 of file event.

Constructor & Destructor Documentation

◆ anim_event() [1/2]

tools::sg::anim_event::anim_event ( num_t  a_secs,
num_t  a_micro_secs 
)
inline

Definition at line 275 of file event.

276  :m_secs(a_secs),m_micro_secs(a_micro_secs)
277  ,m_some_found(false)
278  {}

◆ ~anim_event()

virtual tools::sg::anim_event::~anim_event ( )
inlinevirtual

Definition at line 279 of file event.

279 {}

◆ anim_event() [2/2]

tools::sg::anim_event::anim_event ( const anim_event a_from)
inline

Definition at line 281 of file event.

282  :event(a_from)
283  ,m_secs(a_from.m_secs)
284  ,m_micro_secs(a_from.m_micro_secs)
285  ,m_some_found(a_from.m_some_found)
286  {}

Member Function Documentation

◆ cast()

virtual void* tools::sg::anim_event::cast ( cid  a_class) const
inlinevirtual

Implements tools::sg::event.

Definition at line 261 of file event.

261  {
262  if(void* p = cmp_cast<anim_event>(this,a_class)) return p;
263  return 0;
264  }

◆ copy()

virtual event* tools::sg::anim_event::copy ( ) const
inlinevirtual

Implements tools::sg::event.

Definition at line 272 of file event.

272 {return new anim_event(*this);}

◆ id_class()

static cid tools::sg::anim_event::id_class ( )
inlinestatic

Definition at line 260 of file event.

260 {return parent::id_class()+5;}

◆ micro_seconds()

num_t tools::sg::anim_event::micro_seconds ( ) const
inline

Definition at line 302 of file event.

302 {return m_micro_secs;}

◆ operator=()

anim_event& tools::sg::anim_event::operator= ( const anim_event a_from)
inline

Definition at line 287 of file event.

287  {
288  event::operator=(a_from);
289  m_secs = a_from.m_secs;
290  m_micro_secs = a_from.m_micro_secs;
291  m_some_found = a_from.m_some_found;
292  return *this;
293  }

◆ seconds()

num_t tools::sg::anim_event::seconds ( ) const
inline

Definition at line 301 of file event.

301 {return m_secs;}

◆ set_some_found()

void tools::sg::anim_event::set_some_found ( bool  a_v)
inline

Definition at line 304 of file event.

304 {m_some_found = a_v;}

◆ some_found()

bool tools::sg::anim_event::some_found ( ) const
inline

Definition at line 305 of file event.

305 {return m_some_found;}

Member Data Documentation

◆ m_micro_secs

num_t tools::sg::anim_event::m_micro_secs
protected

Definition at line 308 of file event.

◆ m_secs

num_t tools::sg::anim_event::m_secs
protected

Definition at line 307 of file event.

◆ m_some_found

bool tools::sg::anim_event::m_some_found
protected

Definition at line 309 of file event.


The documentation for this class was generated from the following file:
tools::sg::anim_event::anim_event
anim_event(num_t a_secs, num_t a_micro_secs)
Definition: event:275
tools::sg::anim_event::m_secs
num_t m_secs
Definition: event:307
tools::sg::anim_event::m_some_found
bool m_some_found
Definition: event:309
tools::sg::event::operator=
event & operator=(const event &)
Definition: event:50
tools::sg::event::event
event()
Definition: event:34
tools::sg::anim_event::m_micro_secs
num_t m_micro_secs
Definition: event:308
tools::sg::event::id_class
static cid id_class()
Definition: event:23