61 void add(
const unsigned int);
64 void add(
const std::string);
94 bool isIn(
unsigned int)
const;
98 std::vector <unsigned int> indexedTargetList;
101 std::vector <std::string> namedTargetList;
Manage a list of targets, can be created/modified using either an integer, a name,...
Definition: TargetList.h:45
bool indexedTargets() const
return true only if the list of target are indexes
Definition: TargetList.cpp:265
std::string toAnsys() const
return the ANSYS command to select the list of target (only work for indexed targets)
Definition: TargetList.cpp:216
TargetList()=default
default constructor, the target list is empty
bool isIn(unsigned int) const
return true only if this is the list of target are indexes and the given index is in the list or if t...
Definition: TargetList.cpp:270
std::string toString() const
return the list in a handy/compact format (compact interval, i.e. 4,5,6 becomes 4-6,...
Definition: TargetList.cpp:168
int getIndexedTarget(const unsigned int) const
get an indexed target
Definition: TargetList.cpp:142
std::string getNamedTarget(const unsigned int) const
get a named target
Definition: TargetList.cpp:152
unsigned int getNumberOfTargets() const
get the nr of indevidual targets
Definition: TargetList.cpp:132
void clear()
clear the list
Definition: TargetList.cpp:162
void add(const unsigned int)
add a load using an integer
Definition: TargetList.cpp:39