Geogram Version 1.10.2
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEO::Attribute< bool >::BoolAttributeAccessor Class Reference

Accessor class for adapting Attribute<bool> indexing. More...

#include <geogram/basic/attributes.h>

Public Member Functions

 BoolAttributeAccessor (Attribute< bool > &attribute, index_t index)
 BoolAttributeAccessor constructor.
 operator bool () const
 Converts a BoolAttributeAccessor to a bool.
 BoolAttributeAccessor (const BoolAttributeAccessor &rhs)
 Copy-constructor.
BoolAttributeAccessor & operator= (bool x)
 Assigns a bool to a BoolAttributeAccessor.
BoolAttributeAccessor & operator= (const BoolAttributeAccessor &rhs)
 Copies a bool from another attribute.
BoolAttributeAccessor & operator= (const ConstBoolAttributeAccessor &rhs)
 Copies a bool from another attribute.

Detailed Description

Accessor class for adapting Attribute<bool> indexing.

Definition at line 1724 of file attributes.h.

Constructor & Destructor Documentation

◆ BoolAttributeAccessor() [1/2]

GEO::Attribute< bool >::BoolAttributeAccessor::BoolAttributeAccessor ( Attribute< bool > & attribute,
index_t index )
inline

BoolAttributeAccessor constructor.

Definition at line 1729 of file attributes.h.

◆ BoolAttributeAccessor() [2/2]

GEO::Attribute< bool >::BoolAttributeAccessor::BoolAttributeAccessor ( const BoolAttributeAccessor & rhs)
inline

Copy-constructor.

Parameters
[in]rhsa const reference to the BoolAttributeAccessor to be copied.

Definition at line 1750 of file attributes.h.

Member Function Documentation

◆ operator bool()

GEO::Attribute< bool >::BoolAttributeAccessor::operator bool ( ) const
inline

Converts a BoolAttributeAccessor to a bool.

Performs the actual lookup.

Definition at line 1741 of file attributes.h.

◆ operator=() [1/3]

BoolAttributeAccessor & GEO::Attribute< bool >::BoolAttributeAccessor::operator= ( bool x)
inline

Assigns a bool to a BoolAttributeAccessor.

Stores the boolean into the Attribute.

Definition at line 1759 of file attributes.h.

◆ operator=() [2/3]

BoolAttributeAccessor & GEO::Attribute< bool >::BoolAttributeAccessor::operator= ( const BoolAttributeAccessor & rhs)
inline

Copies a bool from another attribute.

Parameters
[in]rhsa const reference to the BoolAttributeAccessor to be copied.

Definition at line 1769 of file attributes.h.

◆ operator=() [3/3]

BoolAttributeAccessor & GEO::Attribute< bool >::BoolAttributeAccessor::operator= ( const ConstBoolAttributeAccessor & rhs)
inline

Copies a bool from another attribute.

Parameters
[in]rhsa const reference to the ConstBoolAttributeAccessor to be copied.

Definition at line 1784 of file attributes.h.


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