Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
COM_Object_derived Class Reference
Inheritance diagram for COM_Object_derived:
Collaboration diagram for COM_Object_derived:

Static Public Member Functions

static bool cast_obj ()
 

Protected Types

enum  { DERIVED_COOKIE =3374833 }
 

Protected Member Functions

 COM_Object_derived ()
 
virtual ~COM_Object_derived ()
 
void validate_object (int *ierr)
 

Protected Attributes

int _cookie
 

Detailed Description

Definition at line 596 of file Roccom_base.C.

Member Enumeration Documentation

anonymous enum
protected
Enumerator
DERIVED_COOKIE 

Definition at line 619 of file Roccom_base.C.

Constructor & Destructor Documentation

COM_Object_derived ( )
inlineprotected
virtual ~COM_Object_derived ( )
inlineprotectedvirtual

Definition at line 611 of file Roccom_base.C.

611 {}

Member Function Documentation

static bool cast_obj ( )
inlinestatic

Definition at line 598 of file Roccom_base.C.

References validate_object().

Referenced by Roccom_base::set_object().

598  {
599  typedef void(COM_Object::*Member_Func)( int *);
600  Member_Func f = (Member_Func)&COM_Object_derived::validate_object;
601 
602  COM_Object_derived obj;
603  int ierr; (reinterpret_cast<COM_Object*>((void *)&obj)->*f)( &ierr);
604 
605  return ierr != 0;
606  }
void validate_object(int *ierr)
Definition: Roccom_base.C:613

Here is the call graph for this function:

Here is the caller graph for this function:

void validate_object ( int *  ierr)
inlineprotected

Definition at line 613 of file Roccom_base.C.

References _cookie, and DERIVED_COOKIE.

Referenced by cast_obj().

613  {
614  if ( _cookie != DERIVED_COOKIE) *ierr = -1;
615  else *ierr = COM_Object::validate_object();
616  }

Here is the caller graph for this function:

Member Data Documentation

int _cookie
protected

Definition at line 620 of file Roccom_base.C.

Referenced by validate_object().


The documentation for this class was generated from the following file: