sorry for the newlines

This commit is contained in:
rdb 2013-09-18 15:52:36 +00:00
parent 921be2f1e5
commit f867ea701d
11 changed files with 370 additions and 370 deletions

View File

@ -1,41 +1,41 @@
// Filename: lmatrix3_ext_src.h // Filename: lmatrix3_ext_src.h
// Created by: rdb (12Sep13) // Created by: rdb (12Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LMatrix3::Row> // Class : Extension<LMatrix3::Row>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LMatrix3::Row, which are called instead of // LMatrix3::Row, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LMatrix3)::Row> : public ExtensionBase<FLOATNAME(LMatrix3)::Row> { class Extension<FLOATNAME(LMatrix3)::Row> : public ExtensionBase<FLOATNAME(LMatrix3)::Row> {
public: public:
INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
}; };
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LMatrix3> // Class : Extension<LMatrix3>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LMatrix3, which are called instead of // LMatrix3, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LMatrix3)> : public ExtensionBase<FLOATNAME(LMatrix3)> { class Extension<FLOATNAME(LMatrix3)> : public ExtensionBase<FLOATNAME(LMatrix3)> {
public: public:
INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; INLINE_LINMATH PyObject *__reduce__(PyObject *self) const;
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lmatrix3_ext_src.I" #include "lmatrix3_ext_src.I"

View File

@ -1,41 +1,41 @@
// Filename: lmatrix4_ext_src.h // Filename: lmatrix4_ext_src.h
// Created by: rdb (12Sep13) // Created by: rdb (12Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LMatrix4::Row> // Class : Extension<LMatrix4::Row>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LMatrix4::Row, which are called instead of // LMatrix4::Row, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LMatrix4)::Row> : public ExtensionBase<FLOATNAME(LMatrix4)::Row> { class Extension<FLOATNAME(LMatrix4)::Row> : public ExtensionBase<FLOATNAME(LMatrix4)::Row> {
public: public:
INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
}; };
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LMatrix4> // Class : Extension<LMatrix4>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LMatrix4, which are called instead of // LMatrix4, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LMatrix4)> : public ExtensionBase<FLOATNAME(LMatrix4)> { class Extension<FLOATNAME(LMatrix4)> : public ExtensionBase<FLOATNAME(LMatrix4)> {
public: public:
INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; INLINE_LINMATH PyObject *__reduce__(PyObject *self) const;
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lmatrix4_ext_src.I" #include "lmatrix4_ext_src.I"

View File

@ -1,30 +1,30 @@
// Filename: lpoint2_ext_src.h // Filename: lpoint2_ext_src.h
// Created by: rdb (13Sep13) // Created by: rdb (13Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LPoint2> // Class : Extension<LPoint2>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LPoint2, which are called instead of // LPoint2, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LPoint2)> : public ExtensionBase<FLOATNAME(LPoint2)> { class Extension<FLOATNAME(LPoint2)> : public ExtensionBase<FLOATNAME(LPoint2)> {
public: public:
INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lpoint2_ext_src.I" #include "lpoint2_ext_src.I"

View File

@ -1,30 +1,30 @@
// Filename: lpoint3_ext_src.h // Filename: lpoint3_ext_src.h
// Created by: rdb (13Sep13) // Created by: rdb (13Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LPoint3> // Class : Extension<LPoint3>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LPoint3, which are called instead of // LPoint3, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LPoint3)> : public ExtensionBase<FLOATNAME(LPoint3)> { class Extension<FLOATNAME(LPoint3)> : public ExtensionBase<FLOATNAME(LPoint3)> {
public: public:
INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lpoint3_ext_src.I" #include "lpoint3_ext_src.I"

View File

@ -1,30 +1,30 @@
// Filename: lpoint4_ext_src.h // Filename: lpoint4_ext_src.h
// Created by: rdb (13Sep13) // Created by: rdb (13Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LPoint4> // Class : Extension<LPoint4>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LPoint4, which are called instead of // LPoint4, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LPoint4)> : public ExtensionBase<FLOATNAME(LPoint4)> { class Extension<FLOATNAME(LPoint4)> : public ExtensionBase<FLOATNAME(LPoint4)> {
public: public:
INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lpoint4_ext_src.I" #include "lpoint4_ext_src.I"

View File

@ -1,32 +1,32 @@
// Filename: lvecBase2_ext_src.h // Filename: lvecBase2_ext_src.h
// Created by: rdb (13Sep13) // Created by: rdb (13Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LVecBase2> // Class : Extension<LVecBase2>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LVecBase2, which are called instead of // LVecBase2, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LVecBase2)> : public ExtensionBase<FLOATNAME(LVecBase2)> { class Extension<FLOATNAME(LVecBase2)> : public ExtensionBase<FLOATNAME(LVecBase2)> {
public: public:
INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; INLINE_LINMATH PyObject *__reduce__(PyObject *self) const;
INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lvecBase2_ext_src.I" #include "lvecBase2_ext_src.I"

View File

@ -1,32 +1,32 @@
// Filename: lvecBase3_ext_src.h // Filename: lvecBase3_ext_src.h
// Created by: rdb (13Sep13) // Created by: rdb (13Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LVecBase3> // Class : Extension<LVecBase3>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LVecBase3, which are called instead of // LVecBase3, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LVecBase3)> : public ExtensionBase<FLOATNAME(LVecBase3)> { class Extension<FLOATNAME(LVecBase3)> : public ExtensionBase<FLOATNAME(LVecBase3)> {
public: public:
INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; INLINE_LINMATH PyObject *__reduce__(PyObject *self) const;
INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lvecBase3_ext_src.I" #include "lvecBase3_ext_src.I"

View File

@ -1,44 +1,44 @@
// Filename: lvecBase4_ext_src.h // Filename: lvecBase4_ext_src.h
// Created by: rdb (13Sep13) // Created by: rdb (13Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LVecBase4> // Class : Extension<LVecBase4>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LVecBase4, which are called instead of // LVecBase4, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LVecBase4)> : public ExtensionBase<FLOATNAME(LVecBase4)> { class Extension<FLOATNAME(LVecBase4)> : public ExtensionBase<FLOATNAME(LVecBase4)> {
public: public:
INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; INLINE_LINMATH PyObject *__reduce__(PyObject *self) const;
INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<UnalignedLVecBase4> // Class : Extension<UnalignedLVecBase4>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// UnalignedLVecBase4, which are called instead of // UnalignedLVecBase4, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(UnalignedLVecBase4)> : public ExtensionBase<FLOATNAME(UnalignedLVecBase4)> { class Extension<FLOATNAME(UnalignedLVecBase4)> : public ExtensionBase<FLOATNAME(UnalignedLVecBase4)> {
public: public:
INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
}; };
#include "lvecBase4_ext_src.I" #include "lvecBase4_ext_src.I"

View File

@ -1,30 +1,30 @@
// Filename: lvector2_ext_src.h // Filename: lvector2_ext_src.h
// Created by: rdb (13Sep13) // Created by: rdb (13Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LVector2> // Class : Extension<LVector2>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LVector2, which are called instead of // LVector2, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LVector2)> : public ExtensionBase<FLOATNAME(LVector2)> { class Extension<FLOATNAME(LVector2)> : public ExtensionBase<FLOATNAME(LVector2)> {
public: public:
INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lvector2_ext_src.I" #include "lvector2_ext_src.I"

View File

@ -1,30 +1,30 @@
// Filename: lvector3_ext_src.h // Filename: lvector3_ext_src.h
// Created by: rdb (13Sep13) // Created by: rdb (13Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LVector3> // Class : Extension<LVector3>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LVector3, which are called instead of // LVector3, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LVector3)> : public ExtensionBase<FLOATNAME(LVector3)> { class Extension<FLOATNAME(LVector3)> : public ExtensionBase<FLOATNAME(LVector3)> {
public: public:
INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lvector3_ext_src.I" #include "lvector3_ext_src.I"

View File

@ -1,30 +1,30 @@
// Filename: lvector4_ext_src.h // Filename: lvector4_ext_src.h
// Created by: rdb (13Sep13) // Created by: rdb (13Sep13)
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// //
// PANDA 3D SOFTWARE // PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved. // Copyright (c) Carnegie Mellon University. All rights reserved.
// //
// All use of this software is subject to the terms of the revised BSD // 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 // license. You should have received a copy of this license along
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : Extension<LVector4> // Class : Extension<LVector4>
// Description : This class defines the extension methods for // Description : This class defines the extension methods for
// LVector4, which are called instead of // LVector4, which are called instead of
// any C++ methods with the same prototype. // any C++ methods with the same prototype.
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
template<> template<>
class Extension<FLOATNAME(LVector4)> : public ExtensionBase<FLOATNAME(LVector4)> { class Extension<FLOATNAME(LVector4)> : public ExtensionBase<FLOATNAME(LVector4)> {
public: public:
INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
}; };
#include "lvector4_ext_src.I" #include "lvector4_ext_src.I"