61 void add(
const unsigned int);
64 void add(
const std::string);
94 bool isIn(
unsigned int)
const;
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
void clear()
clear the list
Definition: TargetList.cpp:162
std::string toAnsys() const
return the ANSYS command to select the list of target (only work for indexed targets) ...
Definition: TargetList.cpp:216
std::vector< unsigned int > indexedTargetList
list of indexed target = index of the entities
Definition: TargetList.h:98
int getIndexedTarget(const unsigned int) const
get an indexed target
Definition: TargetList.cpp:142
void add(const unsigned int)
add a load using an integer
Definition: TargetList.cpp:39
unsigned int getNumberOfTargets() const
get the nr of indevidual targets
Definition: TargetList.cpp:132
Manage a list of targets, can be created/modified using either an integer, a name, a list of integers given in a string (e.g.
Definition: TargetList.h:45
std::string getNamedTarget(const unsigned int) const
get a named target
Definition: TargetList.cpp:152
TargetList()=default
default constructor, the target list is empty
bool indexedTargets() const
return true only if the list of target are indexes
Definition: TargetList.cpp:265
std::vector< std::string > namedTargetList
list of named target = name of the entities
Definition: TargetList.h:101
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