Panda3D
Classes | Functions
extension.h File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "dtoolbase.h"

Go to the source code of this file.

Classes

class  Extension< T >
 The default class template does not define any methods. More...
 
class  ExtensionBase< T >
 This is where all extensions should derive from. More...
 

Functions

template<class T >
Extension< T > invoke_extension (T *ptr)
 Creates a new extension object for the given pointer that can then be used to call extension methods, as follows: invoke_extension((MyClass) *ptr).method() More...
 
template<class T >
const Extension< T > invoke_extension (const T *ptr)
 The const version of the above function. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
rdb
Date
2013-09-11

Definition in file extension.h.

Function Documentation

◆ invoke_extension() [1/2]

template<class T >
Extension<T> invoke_extension ( T *  ptr)
inline

Creates a new extension object for the given pointer that can then be used to call extension methods, as follows: invoke_extension((MyClass) *ptr).method()

Definition at line 44 of file extension.h.

◆ invoke_extension() [2/2]

template<class T >
const Extension<T> invoke_extension ( const T *  ptr)
inline

The const version of the above function.

Definition at line 55 of file extension.h.