Cogs.Core
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
Cogs::ComponentModel::Component Class Reference

Base class for Component instances. More...

#include <Component.h>

Inheritance diagram for Cogs::ComponentModel::Component:
Cogs::Core::AdaptivePlanarGridComponent Cogs::Core::AnimationComponent Cogs::Core::AnnotationAxisComponent Cogs::Core::AssetComponent Cogs::Core::AudioComponent Cogs::Core::BasicOceanComponent Cogs::Core::BillboardComponent Cogs::Core::CameraArrayComponent Cogs::Core::CameraComponent Cogs::Core::CaptureComponent Cogs::Core::CinematicCameraComponent Cogs::Core::ClipShapeComponent Cogs::Core::ClipShapeRefComponent Cogs::Core::CollisionComponent Cogs::Core::ConstraintComponent Cogs::Core::CubeMarkerComponent Cogs::Core::CurtainView::CurtainViewComponent Cogs::Core::DataSetComponent Cogs::Core::DepthAxisComponent Cogs::Core::DynamicComponent Cogs::Core::EchoSounder::DataSetComponent Cogs::Core::EchoSounder::OctProviderComponent Cogs::Core::EchoSounder::PingIsoComponent Cogs::Core::EchoSounder::SwathBottomComponent Cogs::Core::EchoSounder::SwathIsoComponent Cogs::Core::EchoSounder::UniformGridComponent Cogs::Core::EnvironmentComponent Cogs::Core::ExtrusionComponent Cogs::Core::FogComponent Cogs::Core::GhostComponent Cogs::Core::GuiComponent Cogs::Core::HeightMapComponent Cogs::Core::InstancedModelComponent Cogs::Core::LightComponent Cogs::Core::LodComponent Cogs::Core::LoftedCrossSectionsComponent Cogs::Core::MarkerPointSetComponent Cogs::Core::MaterialComponent Cogs::Core::MeshComponent Cogs::Core::MeshGeneratorComponent Cogs::Core::ModelComponent Cogs::Core::OGC3DTilesComponent Cogs::Core::OceanComponent Cogs::Core::OverlayComponent Cogs::Core::PropertiesComponent Cogs::Core::RenderComponent Cogs::Core::RigidBodyComponent Cogs::Core::SceneComponent Cogs::Core::ScreenSizeComponent Cogs::Core::ScriptComponent Cogs::Core::SeaCurrentsComponent Cogs::Core::ShapeComponent Cogs::Core::StaticModelComponent Cogs::Core::TerrainComponent Cogs::Core::Text3DComponent Cogs::Core::TextComponent Cogs::Core::TextureGeneratorComponent Cogs::Core::TrajectoryComponent Cogs::Core::TrajectoryCrossSectionsComponent Cogs::Core::TrajectoryLayoutComponent Cogs::Core::TransformComponent Cogs::Core::TriggerComponent Cogs::Core::VariableExtrusionComponent Cogs::Core::VectorField::VectorFieldComponent Cogs::Core::VideoCaptureComponent Cogs::Core::VideoPlaybackComponent Cogs::Core::Volumetric::DensityFieldComponent Cogs::Core::Volumetric::OctComponent Cogs::Core::Volumetric::PointVisualizationComponent Cogs::Core::Volumetric::VolOctDummyProviderComponent Cogs::Core::ZipComponent

Public Member Functions

class EntitygetContainer () const
 Get the container currently owning this component instance.
 
void setContainer (class Entity *container)
 Set the container owning this component instance.
 
template<typename ComponentType >
ComponentType * getComponent () const
 
COGSFOUNDATION_API ComponentgetComponent (const Reflection::Name &name) const
 
COGSFOUNDATION_API ComponentgetComponent (const Reflection::TypeId &id) const
 
template<typename ComponentType >
ComponentHandle getComponentHandle () const
 
COGSFOUNDATION_API ComponentHandle getComponentHandle (const Reflection::Name &name) const
 
COGSFOUNDATION_API ComponentHandle getComponentHandle (const Reflection::TypeId &id) const
 
void setActive ()
 Sets the component to the ComponentFlags::Active state.
 
bool isActive () const
 Gets if the component is currently set to the ComponentFlags::Active state.
 
void setChanged ()
 Sets the component to the ComponentFlags::Changed state with carry.
 
void setChangedTransient ()
 Sets the component to the ComponentFlags::Changed state without carry.
 
void setFieldChanged (const Reflection::FieldId fieldId)
 Sets the component to the ComponentFlags::Changed state without carry.
 
template<typename ClassType , typename FieldType >
void setFieldChanged (FieldType ClassType::*field)
 Sets a flag indicating that the given field has changed.
 
void setFieldChangedTransient (const Reflection::FieldId fieldId)
 Sets the component to the ComponentFlags::Changed state without carry.
 
bool hasChanged () const
 
bool hasAnyfieldChanged () const
 Gets if any fields have been changed.
 
bool hasFieldChanged (const Reflection::FieldId fieldId) const
 Gets if the field with the given id on this component instance has changed.
 
template<typename ClassType , typename FieldType >
bool hasFieldChanged (FieldType ClassType::*field) const
 Gets if the given field has changed.
 
void resetCarryChanged ()
 Reset the CarryChanged flag. Called at start of redraw. See ComponentFlags::CarryChanged.
 
void resetChanged ()
 Resets the changed state of the component, respecting any carry state set.
 
template<typename ClassType , typename FieldType >
Reflection::FieldId getFieldId (FieldType ClassType::*field) const
 Gets field ID of the given field.
 
void resetFieldsChanged ()
 Resets the state of all changed field flags.
 
void resetFieldChanged (const Reflection::FieldId fieldId)
 Resets the changed state of the given fieldId.
 
template<typename ClassType , typename FieldType >
void resetFieldChanged (FieldType ClassType::*field)
 Resets the changed state of the given field.
 
constexpr void setFlags (const uint32_t flags)
 Override all flags of the Component, setting the given flags.
 
constexpr void setFlag (const uint32_t flag)
 Set the given flags. Does not override the currently set flags.
 
constexpr void unsetFlag (const uint32_t flag)
 Unset the given flag. Does not remove the status of other than the given flags.
 
constexpr bool isSet (const uint32_t flag) const
 Checks if the given flag is set. Requires exact bit match if test of several bits.
 
constexpr void setTypeId (const Reflection::TypeId typeId)
 Set the Reflection::TypeId of the component.
 
constexpr Reflection::TypeId getTypeId () const
 Get the Reflection::TypeId of the component.
 
COGSFOUNDATION_API const Reflection::TypegetType () const
 Get the full Reflection::Type of the component.
 
constexpr void setIndex (const ComponentIndex index)
 Set the components pool index. For internal use only.
 
constexpr ComponentIndex getIndex () const
 Get the components pool index. For internal use only.
 
constexpr void setGeneration (uint16_t generation)
 Sets the component generation.
 
constexpr uint16_t getGeneration () const
 Gets the component generation.
 
size_t hash (size_t hashValue=Cogs::hash()) const
 Calculates a hash of this component's members.
 

Static Public Member Functions

static COGSFOUNDATION_API void registerType ()
 Register the Component type in the global type database.
 
static COGSFOUNDATION_API Reflection::TypeId getComponentTypeId (const StringView &name)
 Get the type id of the component type with the given name.
 

Private Member Functions

COGSFOUNDATION_API Reflection::FieldId getFieldIdFromOffset (size_t offset) const
 Returns Field ID for the field with the given offset. Returns NoField if not a registered field.
 

Static Private Member Functions

static constexpr uint32_t leftShift (const uint32_t value, const uint32_t fieldId)
 

Detailed Description

Base class for Component instances.

Contains housekeeping data and a pointer to the owner of the component instance.

Definition at line 142 of file Component.h.

Member Function Documentation

◆ getComponent() [1/3]

template<typename ComponentType >
ComponentType * Cogs::ComponentModel::Component::getComponent ( ) const
inline

Get a component with the given ComponentType type from the owner of this component. Returns null if no matching instance is found.

Definition at line 159 of file Component.h.

References getComponent(), and getComponentTypeId().

Referenced by Cogs::Core::EntityStore::addChild(), Cogs::Core::OGC3DTilesSystem::addModelToScene(), Cogs::Core::applyRenderMaterial(), Cogs::Core::VideoCaptureSystem::destroyComponent(), Cogs::Core::Volumetric::OctBounds::getBounds(), Cogs::Core::TerrainBounds::getBounds(), Cogs::Core::InstancedMeshRenderBounds::getBounds(), Cogs::Core::ViewContext::getCameraComponent(), getComponent(), Cogs::Core::SeaCurrentsSystem::getWorldBounds(), Cogs::Core::PotreePicker::pickCamera(), Cogs::Core::Image360::RayPickExtension::pickCamera(), Cogs::Core::OceanPicker::pickCamera(), Cogs::Core::TerrainPicker::pickCamera(), Cogs::Core::VectorField::VectorFieldPick::pickCamera(), Cogs::Core::MarkerPointSetPicker::pickCamera(), Cogs::Core::PotreePicker::pickRay(), Cogs::Core::MarkerPointSetPicker::pickRay(), Cogs::Core::BasicOceanSystem::postUpdate(), Cogs::Core::LightSystem::preRender(), Cogs::Core::EchoSounder::OctProviderSystem::preUpdate(), Cogs::Core::PotreeSystem::preUpdate(), Cogs::Core::VideoCaptureSystem::preUpdate(), Cogs::Core::ClipShapeSystem::preUpdate(), Cogs::Core::OGC3DTilesSystem::pruneTileCache(), Cogs::Core::EntityStore::removeChildren(), Cogs::Core::ViewContext::setCamera(), Cogs::Core::TrajectoryAlignedComponent::update(), Cogs::Core::MarkerPointSetSystem::update(), Cogs::Core::DepthAxisSystem::update(), Cogs::Core::TrajectoryCrossSectionsSystem::update(), Cogs::Core::HeightMapSystem::update(), Cogs::Core::BillboardSystem::update(), Cogs::Core::LodSystem::update(), Cogs::Core::TrajectorySystem::update(), Cogs::Core::VariableExtrusionSystem::update(), Cogs::Core::TrajectoryLayoutSystem::update(), Cogs::Core::RigidBodySystem::update(), Cogs::Core::TriggerSystem::update(), Cogs::Core::CubeMarkerSystem::update(), Cogs::Core::LoftedCrossSectionsSystem::update(), Cogs::Core::EchoSounder::OctProviderSystem::update(), Cogs::Core::EchoSounder::PingIsoSystem::update(), Cogs::Core::EchoSounder::SwathBottomSystem::update(), Cogs::Core::EchoSounder::SwathIsoSystem::update(), Cogs::Core::PotreeSystem::update(), Cogs::Core::OceanSystem::update(), Cogs::Core::Volumetric::DensityFieldSystem::update(), Cogs::Core::Volumetric::OctSystem::update(), Cogs::Core::Volumetric::PointVisualizationSystem::update(), Cogs::Core::BasicOceanSystem::update(), Cogs::Core::AssetSystem::update(), Cogs::Core::CameraArraySystem::update(), Cogs::Core::ClipShapeSystem::update(), Cogs::Core::StaticModelSystem::update(), Cogs::Core::Text3DSystem::update(), Cogs::Core::AdaptivePlanarGridSystem::update(), and Cogs::Core::ShapeSystem::update().

◆ getComponent() [2/3]

Cogs::ComponentModel::Component * Cogs::ComponentModel::Component::getComponent ( const Reflection::Name name) const

Get a component with the given type name from the owner of this component. Returns null if no matching instance is found.

Definition at line 37 of file Component.cpp.

◆ getComponent() [3/3]

Cogs::ComponentModel::Component * Cogs::ComponentModel::Component::getComponent ( const Reflection::TypeId id) const

Get a component with the given type id from the owner of this component. Returns null if no matching instance is found.

Definition at line 44 of file Component.cpp.

◆ getComponentHandle() [1/3]

template<typename ComponentType >
ComponentHandle Cogs::ComponentModel::Component::getComponentHandle ( ) const
inline

Get a component handle with the given ComponentType type from the owner of this component. Returns null if no matching instance is found.

Definition at line 177 of file Component.h.

References getComponentHandle(), and getComponentTypeId().

Referenced by getComponentHandle(), Cogs::Core::CameraArraySystem::update(), Cogs::Core::CameraSystem::update(), Cogs::Core::InstancedMeshRenderSystem::update(), Cogs::Core::RenderSystem::update(), Cogs::Core::SubMeshRenderSystem::update(), and Cogs::Core::TextSystem::update().

◆ getComponentHandle() [2/3]

Cogs::ComponentModel::ComponentHandle Cogs::ComponentModel::Component::getComponentHandle ( const Reflection::Name name) const

Get a component handle with the given type name from the owner of this component. Returns ComponentHandle::Empty if no matching instance is found.

Definition at line 51 of file Component.cpp.

References Cogs::ComponentModel::ComponentHandle::Empty().

◆ getComponentHandle() [3/3]

Cogs::ComponentModel::ComponentHandle Cogs::ComponentModel::Component::getComponentHandle ( const Reflection::TypeId id) const

Get a component handle with the given type id from the owner of this component. Returns ComponentHandle::Empty if no matching instance is found.

Definition at line 58 of file Component.cpp.

References Cogs::ComponentModel::ComponentHandle::Empty().

◆ getComponentTypeId()

Cogs::Reflection::TypeId Cogs::ComponentModel::Component::getComponentTypeId ( const StringView name)
static

Get the type id of the component type with the given name.

Definition at line 32 of file Component.cpp.

References Cogs::Reflection::TypeDatabase::getType(), and Cogs::Reflection::Type::getTypeId().

Referenced by getComponent(), and getComponentHandle().

◆ getContainer()

class Entity * Cogs::ComponentModel::Component::getContainer ( ) const
inline

◆ getFieldId()

template<typename ClassType , typename FieldType >
Reflection::FieldId Cogs::ComponentModel::Component::getFieldId ( FieldType ClassType::*  field) const
inline

Gets field ID of the given field.

Allows caching the ID for later hasFieldChanged checking as hasFieldChanged using hasFieldChanged(&Component<T>::fieldMemberName) requires type DB lookups.

Template Parameters
ClassTypeType of the component class.
FieldTypeType of the field.
Parameters
fieldPointer to member to the field.
Returns
Type Database field ID (NoField if not a registered field).

Definition at line 328 of file Component.h.

References getFieldIdFromOffset(), and Cogs::memberOffset().

Referenced by hasFieldChanged(), resetFieldChanged(), and setFieldChanged().

◆ getFieldIdFromOffset()

Cogs::Reflection::FieldId Cogs::ComponentModel::Component::getFieldIdFromOffset ( size_t  offset) const
private

Returns Field ID for the field with the given offset. Returns NoField if not a registered field.

Definition at line 22 of file Component.cpp.

Referenced by getFieldId().

◆ getGeneration()

constexpr uint16_t Cogs::ComponentModel::Component::getGeneration ( ) const
inlineconstexpr

Gets the component generation.

Definition at line 400 of file Component.h.

◆ getIndex()

constexpr ComponentIndex Cogs::ComponentModel::Component::getIndex ( ) const
inlineconstexpr

Get the components pool index. For internal use only.

Definition at line 392 of file Component.h.

Referenced by Cogs::ComponentModel::ComponentPoolBase::getComponentIndex().

◆ getType()

const Cogs::Reflection::Type & Cogs::ComponentModel::Component::getType ( ) const

Get the full Reflection::Type of the component.

Definition at line 27 of file Component.cpp.

References Cogs::Reflection::TypeDatabase::getType().

Referenced by Cogs::Core::findHierarchyWithMatch().

◆ getTypeId()

constexpr Reflection::TypeId Cogs::ComponentModel::Component::getTypeId ( ) const
inlineconstexpr

Get the Reflection::TypeId of the component.

Definition at line 380 of file Component.h.

Referenced by Cogs::Core::Engine::invokeComponentNotifyCallback().

◆ hasAnyfieldChanged()

bool Cogs::ComponentModel::Component::hasAnyfieldChanged ( ) const
inline

Gets if any fields have been changed.

Definition at line 262 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::AllFieldChanged.

◆ hasChanged()

bool Cogs::ComponentModel::Component::hasChanged ( ) const
inline

◆ hasFieldChanged() [1/2]

bool Cogs::ComponentModel::Component::hasFieldChanged ( const Reflection::FieldId  fieldId) const
inline

Gets if the field with the given id on this component instance has changed.

Note that fieldIds in Overflow range share change flag.

Parameters
fieldIdField id of the field to check for changes.
Returns
A boolean indicating if the given field changed.

Definition at line 272 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::FieldChange, isSet(), and Cogs::ComponentModel::ComponentFlags::OverflowFieldChange.

Referenced by hasFieldChanged().

◆ hasFieldChanged() [2/2]

template<typename ClassType , typename FieldType >
bool Cogs::ComponentModel::Component::hasFieldChanged ( FieldType ClassType::*  field) const
inline

Gets if the given field has changed.

Expensive - cache fieldID and use this where possible. It is usually not necessary to manually specify template parameters for this method, as they will be deduced from the method parameter.

Template Parameters
ClassTypeType of the component class.
FieldTypeType of the field to check for changed status.
Parameters
fieldPointer to member to the field to check for changes.
Returns
A boolean indicating if the given field has changed.

Definition at line 290 of file Component.h.

References getFieldId(), and hasFieldChanged().

◆ hash()

size_t Cogs::ComponentModel::Component::hash ( size_t  hashValue = Cogs::hash()) const
inline

Calculates a hash of this component's members.

Definition at line 405 of file Component.h.

References Cogs::hash().

◆ isActive()

bool Cogs::ComponentModel::Component::isActive ( ) const
inline

Gets if the component is currently set to the ComponentFlags::Active state.

Definition at line 196 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::Active, and isSet().

◆ isSet()

constexpr bool Cogs::ComponentModel::Component::isSet ( const uint32_t  flag) const
inlineconstexpr

Checks if the given flag is set. Requires exact bit match if test of several bits.

Definition at line 374 of file Component.h.

Referenced by hasChanged(), hasFieldChanged(), isActive(), resetChanged(), and Cogs::setChanged().

◆ leftShift()

static constexpr uint32_t Cogs::ComponentModel::Component::leftShift ( const uint32_t  value,
const uint32_t  fieldId 
)
inlinestaticconstexprprivate

Definition at line 417 of file Component.h.

◆ registerType()

void Cogs::ComponentModel::Component::registerType ( )
static

Register the Component type in the global type database.

Definition at line 17 of file Component.cpp.

◆ resetCarryChanged()

void Cogs::ComponentModel::Component::resetCarryChanged ( )
inline

Reset the CarryChanged flag. Called at start of redraw. See ComponentFlags::CarryChanged.

Definition at line 296 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::CarryChanged, and unsetFlag().

◆ resetChanged()

void Cogs::ComponentModel::Component::resetChanged ( )
inline

Resets the changed state of the component, respecting any carry state set.

If the CarryChanged flag is set, the Changed and FieldChange flags will still be present. The CarryChanged flag is not changed. Called at end of redraw loop.

Call resetCarryChanged() first to ensure a full change state reset.

Definition at line 309 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::CarryChanged, Cogs::ComponentModel::ComponentFlags::Changed, isSet(), resetFieldsChanged(), and unsetFlag().

◆ resetFieldChanged() [1/2]

void Cogs::ComponentModel::Component::resetFieldChanged ( const Reflection::FieldId  fieldId)
inline

Resets the changed state of the given fieldId.

Note that fieldIds in Overflow range share change flag and cannot be reset.

Parameters
fieldIdField id of the field to reset.

Definition at line 342 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::FieldChange, and unsetFlag().

Referenced by resetFieldChanged().

◆ resetFieldChanged() [2/2]

template<typename ClassType , typename FieldType >
void Cogs::ComponentModel::Component::resetFieldChanged ( FieldType ClassType::*  field)
inline

Resets the changed state of the given field.

Expensive - cache fieldID and use this where possible. Note that fieldIds in Overflow range share change flag and cannot be reset.

Template Parameters
ClassTypeType of the component class.
FieldTypeType of the changed field.
Parameters
fieldPointer to member to the field to reset.

Definition at line 359 of file Component.h.

References getFieldId(), and resetFieldChanged().

◆ resetFieldsChanged()

void Cogs::ComponentModel::Component::resetFieldsChanged ( )
inline

Resets the state of all changed field flags.

Definition at line 334 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::AllFieldChanged, and unsetFlag().

Referenced by resetChanged().

◆ setActive()

void Cogs::ComponentModel::Component::setActive ( )
inline

Sets the component to the ComponentFlags::Active state.

Definition at line 193 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::Active, and setFlag().

◆ setChanged()

void Cogs::ComponentModel::Component::setChanged ( )
inline

◆ setChangedTransient()

void Cogs::ComponentModel::Component::setChangedTransient ( )
inline

Sets the component to the ComponentFlags::Changed state without carry.

Also marks all fields changed. This call is typically set to trigger an update for another component but will only have effect if the component is not yet updated.

Definition at line 209 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::AllFieldChanged, Cogs::ComponentModel::ComponentFlags::Changed, and setFlag().

◆ setContainer()

void Cogs::ComponentModel::Component::setContainer ( class Entity container)
inline

Set the container owning this component instance.

Definition at line 154 of file Component.h.

◆ setFieldChanged() [1/2]

void Cogs::ComponentModel::Component::setFieldChanged ( const Reflection::FieldId  fieldId)
inline

Sets the component to the ComponentFlags::Changed state without carry.

Also sets a flag indicating that the field with the given field id has changed. The first N (24) fields are tracked individually. The remaining tracked by same flag.

Parameters
fieldIdField id of the changed field.

Definition at line 218 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::CarryChanged, Cogs::ComponentModel::ComponentFlags::Changed, Cogs::ComponentModel::ComponentFlags::FieldChange, Cogs::ComponentModel::ComponentFlags::OverflowFieldChange, and setFlag().

Referenced by Cogs::setChanged(), and setFieldChanged().

◆ setFieldChanged() [2/2]

template<typename ClassType , typename FieldType >
void Cogs::ComponentModel::Component::setFieldChanged ( FieldType ClassType::*  field)
inline

Sets a flag indicating that the given field has changed.

Expensive - cache fieldID and use this where possible. It is usually not necessary to manually specify template parameters for this method, as they will be deduced from the method parameter.

Template Parameters
ClassTypeType of the component class.
FieldTypeType of the changed field.
Parameters
fieldPointer to member to the field that changed.

Definition at line 237 of file Component.h.

References getFieldId(), and setFieldChanged().

◆ setFieldChangedTransient()

void Cogs::ComponentModel::Component::setFieldChangedTransient ( const Reflection::FieldId  fieldId)
inline

Sets the component to the ComponentFlags::Changed state without carry.

Also sets a flag indicating that the field with the given field id has changed. The first N (24) fields are tracked individually. The remaining tracked by same flag. This call is typically set to trigger an update for another component but will only have effect if the component is not yet updated.

Parameters
fieldIdField id of the changed field.

Definition at line 250 of file Component.h.

References Cogs::ComponentModel::ComponentFlags::Changed, Cogs::ComponentModel::ComponentFlags::FieldChange, Cogs::ComponentModel::ComponentFlags::OverflowFieldChange, and setFlag().

◆ setFlag()

constexpr void Cogs::ComponentModel::Component::setFlag ( const uint32_t  flag)
inlineconstexpr

Set the given flags. Does not override the currently set flags.

Definition at line 368 of file Component.h.

Referenced by Cogs::Core::LightSystem::preRender(), setActive(), setChanged(), setChangedTransient(), setFieldChanged(), and setFieldChangedTransient().

◆ setFlags()

constexpr void Cogs::ComponentModel::Component::setFlags ( const uint32_t  flags)
inlineconstexpr

Override all flags of the Component, setting the given flags.

Definition at line 365 of file Component.h.

◆ setGeneration()

constexpr void Cogs::ComponentModel::Component::setGeneration ( uint16_t  generation)
inlineconstexpr

Sets the component generation.

Definition at line 395 of file Component.h.

◆ setIndex()

constexpr void Cogs::ComponentModel::Component::setIndex ( const ComponentIndex  index)
inlineconstexpr

Set the components pool index. For internal use only.

Definition at line 389 of file Component.h.

◆ setTypeId()

constexpr void Cogs::ComponentModel::Component::setTypeId ( const Reflection::TypeId  typeId)
inlineconstexpr

Set the Reflection::TypeId of the component.

Definition at line 377 of file Component.h.

◆ unsetFlag()

constexpr void Cogs::ComponentModel::Component::unsetFlag ( const uint32_t  flag)
inlineconstexpr

Unset the given flag. Does not remove the status of other than the given flags.

Definition at line 371 of file Component.h.

Referenced by Cogs::Core::LightSystem::preRender(), resetCarryChanged(), resetChanged(), resetFieldChanged(), and resetFieldsChanged().


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