9 #ifndef __PDG_NODE_PORTS_H__
10 #define __PDG_NODE_PORTS_H__
27 int64 getMemoryUsage(
bool inclusive)
const;
36 {
return myPortArrays[(
int)port_type].
size(); }
40 {
return myPortArrays[(
int)port_type]; }
58 template <
typename... Args>
61 PortPtr port_ptr = UTmakeUnique<PDG_Port>(
62 std::forward<Args>(
args)...);
69 myPortArrays[(
int)type].append(port);
70 myPortMaps[(
int)type][name] =
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
PDG_Port * add(Args &&...args)
Adds a new port to the table.
PDG_PortType
Enumeration of node port types.
GLuint const GLchar * name
const PDG_PortArray & ports(PDG_PortType port_type) const
Returns the array of ports for the specified type.
**If you just want to fire and args
void sort(I begin, I end, const Pred &pred)
int count(PDG_PortType port_type) const
Returns the total number of ports of the specified type.