Hide menu
Loading...
Searching...
No Matches
cadex::MTKBase_FeatureList Class Reference

Defines a list of features. More...

Public Member Functions

 MTKBase_FeatureList ()
 Constructor.
 
 MTKBase_FeatureList (std::initializer_list< MTKBase_Feature > theList)
 Constructor.
 
void Append (const MTKBase_Feature &theFeature)
 Adds a feature to the list.
 
const MTKBase_FeatureFeature (size_t theIndex) const
 Access specified element.
 
MTKBase_FeatureFeature (size_t theIndex)
 Access specified element.
 
const MTKBase_Featureoperator[] (size_t theIndex) const
 
MTKBase_Featureoperator[] (size_t theIndex)
 
size_t Size () const
 Returns the number of elements in the list.
 
bool IsEmpty () const
 

Detailed Description

Constructor & Destructor Documentation

◆ MTKBase_FeatureList() [1/2]

cadex::MTKBase_FeatureList::MTKBase_FeatureList ( )

Constructor.

Creates an empty list.

◆ MTKBase_FeatureList() [2/2]

cadex::MTKBase_FeatureList::MTKBase_FeatureList ( std::initializer_list< MTKBase_Feature theList)

Constructor.

Creates a list specified by given features.

Member Function Documentation

◆ Feature() [1/2]

MTKBase_Feature & cadex::MTKBase_FeatureList::Feature ( size_t  theIndex)

Access specified element.

Returns a reference to the feature at specified location pos.

theIndex must be in the range [0, Size()-1]. Otherwise the result is undefined.

See also
Size()

◆ Feature() [2/2]

const MTKBase_Feature & cadex::MTKBase_FeatureList::Feature ( size_t  theIndex) const

Access specified element.

Returns the feature at specified location pos.

theIndex must be in the range [0, Size()-1]. Otherwise the result is undefined.

See also
Size()
Examples
MTKConverter/Program.cs, machining/dfm_analyzer/Program.cs, machining/feature_recognizer/Program.cs, and sheet_metal/dfm_analyzer/Program.cs.

◆ IsEmpty()

bool cadex::MTKBase_FeatureList::IsEmpty ( ) const
inline

Returns true if the list empty.

See also
Size()
Examples
MTKConverter/Program.cs, and MTKConverter/main.cxx.