MAK Legion API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
Legion::ObjectType Class Reference

The Object type contains a 7-digit tuple representing the type of a simulation entity Recommend following the SISO Enumerations for Simulation Interoperability document. More...

+ Collaboration diagram for Legion::ObjectType:

Public Member Functions

 ObjectType ()
 constructors More...
 
 ObjectType (Int8 *values)
 
 ObjectType (Int8 knd, Int8 dom, Int16 ctr, Int8 cat, Int8 sub, Int8 spec, Int8 ext)
 
bool operator== (const ObjectType &rhs) const
 equality More...
 
bool operator!= (const ObjectType &rhs) const
 not-equals More...
 
bool matches (const ObjectType &rhs) const
 Determines if two object types match, includes checking for wild card values (-1) More...
 
bool operator< (const ObjectType &type) const
 Returns true if the entity type is smaller. More...
 

Public Attributes

union {
   struct {
      Int8   kind
 
      Int8   domain
 
      Int16   country
 
      Int8   category
 
      Int8   subcategory
 
      Int8   specific
 
      Int8   extra
 
   } 
 
   UInt64   val
 
}; 
 

Detailed Description

The Object type contains a 7-digit tuple representing the type of a simulation entity Recommend following the SISO Enumerations for Simulation Interoperability document.

Constructor & Destructor Documentation

Legion::ObjectType::ObjectType ( )

constructors

Legion::ObjectType::ObjectType ( Int8 values)
Legion::ObjectType::ObjectType ( Int8  knd,
Int8  dom,
Int16  ctr,
Int8  cat,
Int8  sub,
Int8  spec,
Int8  ext 
)

Member Function Documentation

bool Legion::ObjectType::matches ( const ObjectType rhs) const
inline

Determines if two object types match, includes checking for wild card values (-1)

References category, country, domain, extra, kind, specific, and subcategory.

bool Legion::ObjectType::operator!= ( const ObjectType rhs) const
inline

not-equals

References val.

bool Legion::ObjectType::operator< ( const ObjectType type) const

Returns true if the entity type is smaller.

If there are wildcards present then true is returned if the entity is smaller and less specific.

bool Legion::ObjectType::operator== ( const ObjectType rhs) const
inline

equality

References val.

Member Data Documentation

union { ... }
Int8 Legion::ObjectType::category

Referenced by matches().

Int16 Legion::ObjectType::country

Referenced by matches().

Int8 Legion::ObjectType::domain

Referenced by matches().

Int8 Legion::ObjectType::extra

Referenced by matches().

Int8 Legion::ObjectType::kind

Referenced by matches().

Int8 Legion::ObjectType::specific

Referenced by matches().

Int8 Legion::ObjectType::subcategory

Referenced by matches().

UInt64 Legion::ObjectType::val

Referenced by operator!=(), and operator==().


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

Document ID: Generated on Mon Mar 8 15:11:30 EST 2021 from SVN revision 225633
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)