NCBI C++ ToolKit
|
Search Toolkit Book for Vector
#include "njn_vector.hpp"
(Private to src/algo/blast/gumbel_params
.)
Public Member Functions | |
Vector () | |
Vector (const Vector &vector_) | |
Vector (const T *begin_, const T *end_) | |
Vector (size_t m_, const T &a_) | |
virtual | ~Vector () |
Vector & | operator= (const Vector &vector_) |
virtual void * | create (bool isCopy_=false) const |
virtual void | copy (const T *begin_, const T *end_) |
virtual void | copy (size_t m_, const T &a_) |
virtual | operator bool () const |
virtual std::ostream & | out (std::ostream &ostr_) const |
virtual std::istream & | in (std::istream &istr_) |
virtual Vector & | operator= (const T &a_) |
virtual size_t | size () const |
virtual T & | operator[] (size_t i_) |
virtual const T & | operator[] (size_t i_) const |
virtual size_t | getM () const |
virtual const T * | getVector () const |
Vector (double xi=0.0, double yi=0.0, double zi=0.0) | |
Vector (const Vector &v) | |
Vector & | operator= (const Vector &v) |
void | Set (double xs, double ys, double zs) |
bool | operator== (const Vector &other) |
bool | operator!= (const Vector &other) |
double & | operator[] (unsigned int i) |
double | operator[] (unsigned int i) const |
Vector & | operator+= (const Vector &v) |
Vector & | operator-= (const Vector &v) |
Vector & | operator*= (double f) |
Vector & | operator/= (double f) |
double | length (void) const |
double | lengthSquared (void) const |
void | normalize (void) |
Public Attributes | |
double | x |
double | y |
double | z |
Private Member Functions | |
virtual void | init (size_t m_) |
virtual void | free () |
Private Attributes | |
size_t | d_m |
T * | d_vector_p |
Friends | |
Vector | operator- (const Vector &a) |
Vector | operator+ (const Vector &a, const Vector &b) |
Vector | operator- (const Vector &a, const Vector &b) |
Vector | operator* (const Vector &v, double f) |
Vector | operator* (double f, const Vector &v) |
Vector | operator/ (const Vector &v, double f) |
double | vector_dot (const Vector &a, const Vector &b) |
Vector | vector_cross (const Vector &a, const Vector &b) |
Definition at line 51 of file njn_vector.hpp.
Definition at line 108 of file njn_vector.hpp.
Definition at line 113 of file njn_vector.hpp.
References copy().
Definition at line 122 of file njn_vector.hpp.
References copy().
Definition at line 131 of file njn_vector.hpp.
References free().
|
inline |
Definition at line 49 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 53 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 167 of file njn_vector.hpp.
Definition at line 141 of file njn_vector.hpp.
Definition at line 330 of file njn_vector.hpp.
Definition at line 77 of file njn_vector.hpp.
References Vector< T >::d_m.
Definition at line 78 of file njn_vector.hpp.
References Vector< T >::d_vector_p.
Definition at line 236 of file njn_vector.hpp.
References abort(), assert, clearFormat(), copy(), free(), getFormat(), getLine(), HUMAN, i, init(), MACHINE, T, USING_SCOPE, and rapidjson::value.
Definition at line 322 of file njn_vector.hpp.
References T.
Definition at line 135 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Referenced by OpenGLRenderer::NewView(), and Vector< T >::normalize().
Definition at line 139 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 143 of file vector_math.hpp.
References Vector< T >::length().
Referenced by OpenGLRenderer::CenterView(), Residue::Draw(), OpenGLRenderer::DrawHalfWorm(), OpenGLRenderer::DrawStrand(), GetVirtualResidue(), OpenGLRenderer::NewView(), SetRotationMatrix(), and Strand3D::Strand3D().
Definition at line 182 of file njn_vector.hpp.
Definition at line 70 of file vector_math.hpp.
Definition at line 121 of file vector_math.hpp.
References f, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 99 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 108 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 130 of file vector_math.hpp.
References f, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 185 of file njn_vector.hpp.
References copy().
Definition at line 57 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 134 of file njn_vector.hpp.
References copy().
Definition at line 66 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 310 of file njn_vector.hpp.
Definition at line 316 of file njn_vector.hpp.
Definition at line 74 of file vector_math.hpp.
References ERR_POST, Error(), i, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 83 of file vector_math.hpp.
References ERR_POST, Error(), i, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 193 of file njn_vector.hpp.
References assert, clearFormat(), getFormat(), HUMAN, i, MACHINE, and USING_SCOPE.
Definition at line 62 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Referenced by ASNColor2Vector(), Colors::Colors(), ConvertColor(), Residue::Draw(), OpenGLRenderer::RestoreSavedView(), StructureSet::SetCenter(), and StyleSettings::SetColorScheme().
Definition at line 304 of file njn_vector.hpp.
Referenced by StructureSet::CenterViewOnAlignedResidues().
Definition at line 113 of file vector_math.hpp.
Definition at line 117 of file vector_math.hpp.
Definition at line 95 of file vector_math.hpp.
Definition at line 91 of file vector_math.hpp.
Definition at line 104 of file vector_math.hpp.
Definition at line 126 of file vector_math.hpp.
Definition at line 151 of file vector_math.hpp.
Definition at line 147 of file vector_math.hpp.
Definition at line 82 of file njn_vector.hpp.
Referenced by Vector< T >::getM().
Definition at line 83 of file njn_vector.hpp.
Referenced by Vector< T >::getVector().
Definition at line 47 of file vector_math.hpp.
Referenced by ApplyTransformation(), AtomSet::AtomSet(), OpenGLRenderer::CenterView(), OpenGLRenderer::ChangeView(), OpenGLRenderer::DrawHalfBond(), OpenGLRenderer::DrawHalfWorm(), OpenGLRenderer::DrawLabel(), Vector< T >::length(), Vector< T >::lengthSquared(), ModelPoint2Vector(), OpenGLRenderer::MyGluSphere(), OpenGLRenderer::NewView(), Vector< T >::operator*=(), Vector< T >::operator+=(), Vector< T >::operator-=(), Vector< T >::operator/=(), operator<<(), Vector< T >::operator=(), Vector< T >::operator==(), Vector< T >::operator[](), StructureObject::RealignStructure(), OpenGLRenderer::ResetCamera(), OpenGLRenderer::SaveToASNViewSettings(), Vector< T >::Set(), SetRotationMatrix(), SetScaleMatrix(), and Vector< T >::Vector().
Definition at line 47 of file vector_math.hpp.
Referenced by ApplyTransformation(), AtomSet::AtomSet(), OpenGLRenderer::CenterView(), OpenGLRenderer::ChangeView(), OpenGLRenderer::DrawHalfBond(), OpenGLRenderer::DrawHalfWorm(), OpenGLRenderer::DrawLabel(), Vector< T >::length(), Vector< T >::lengthSquared(), ModelPoint2Vector(), OpenGLRenderer::MyGluSphere(), OpenGLRenderer::NewView(), Vector< T >::operator*=(), Vector< T >::operator+=(), Vector< T >::operator-=(), Vector< T >::operator/=(), operator<<(), Vector< T >::operator=(), Vector< T >::operator==(), Vector< T >::operator[](), StructureObject::RealignStructure(), OpenGLRenderer::ResetCamera(), OpenGLRenderer::SaveToASNViewSettings(), Vector< T >::Set(), SetRotationMatrix(), SetScaleMatrix(), and Vector< T >::Vector().
Definition at line 47 of file vector_math.hpp.
Referenced by ApplyTransformation(), AtomSet::AtomSet(), OpenGLRenderer::CenterView(), OpenGLRenderer::ChangeView(), OpenGLRenderer::DrawHalfBond(), OpenGLRenderer::DrawHalfWorm(), OpenGLRenderer::DrawLabel(), Vector< T >::length(), Vector< T >::lengthSquared(), ModelPoint2Vector(), OpenGLRenderer::MyGluSphere(), OpenGLRenderer::NewView(), Vector< T >::operator*=(), Vector< T >::operator+=(), Vector< T >::operator-=(), Vector< T >::operator/=(), operator<<(), Vector< T >::operator=(), Vector< T >::operator==(), Vector< T >::operator[](), StructureObject::RealignStructure(), OpenGLRenderer::ResetCamera(), OpenGLRenderer::SaveToASNViewSettings(), Vector< T >::Set(), SetRotationMatrix(), SetScaleMatrix(), and Vector< T >::Vector().