9 #ifndef __PDG_NODE_PORTS_H__
10 #define __PDG_NODE_PORTS_H__
26 int64 getMemoryUsage(
bool inclusive)
const;
35 {
return myPortArrays[(
int)port_type].
size(); }
39 {
return myPortArrays[(
int)port_type]; }
57 template <
typename... Args>
60 PortPtr port_ptr = UTmakeUnique<PDG_Port>(
61 std::forward<Args>(
args)...);
68 myPortArrays[(
int)type].append(port);
69 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.
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)
PDG_PortType
Enumeration of node port types.
int count(PDG_PortType port_type) const
Returns the total number of ports of the specified type.