Panda3D
Public Member Functions | List of all members
InputDeviceSet Class Reference

Manages a list of InputDevice objects, as returned by various InputDeviceManager methods. More...

Public Member Functions

 __init__ ()
 
 __init__ (const InputDeviceSet copy)
 
 clear ()
 Removes all InputDevices from the collection. More...
 
InputDevice operator [] (int index)
 Returns the nth InputDevice in the collection. More...
 
InputDeviceSet operator= (const InputDeviceSet copy)
 
 output (Ostream out)
 Writes a brief one-line description of the InputDeviceSet to the indicated output stream. More...
 
 reserve (int num)
 This is a hint to Panda to allocate enough memory to hold the given number of InputDevices, if you know ahead of time how many you will be adding. More...
 
int size ()
 Returns the number of devices in the collection. More...
 
 write (Ostream out, int indent_level)
 Writes a complete multi-line description of the InputDeviceSet to the indicated output stream. More...
 

Detailed Description

Manages a list of InputDevice objects, as returned by various InputDeviceManager methods.

This is implemented like a set, meaning the same device cannot occur more than once.

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( const InputDeviceSet  copy)

◆ clear()

clear ( )

Removes all InputDevices from the collection.

◆ operator []()

InputDevice operator [] ( int  index)

Returns the nth InputDevice in the collection.

◆ operator=()

InputDeviceSet operator= ( const InputDeviceSet  copy)

◆ output()

output ( Ostream  out)

Writes a brief one-line description of the InputDeviceSet to the indicated output stream.

◆ reserve()

reserve ( int  num)

This is a hint to Panda to allocate enough memory to hold the given number of InputDevices, if you know ahead of time how many you will be adding.

◆ size()

int size ( )

Returns the number of devices in the collection.

◆ write()

write ( Ostream  out,
int  indent_level 
)

Writes a complete multi-line description of the InputDeviceSet to the indicated output stream.