GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing codebrowser.dev — position.cpp source code [quantlib/ql/position.cpp] - Codebrowser

Codebrowser logo
About
Contact
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2007 Cristina Duminuco
5
6 This file is part of QuantLib, a free-software/open-source library
7 for financial quantitative analysts and developers - http://quantlib.org/
8
9 QuantLib is free software: you can redistribute it and/or modify it
10 under the terms of the QuantLib license. You should have received a
11 copy of the license along with this program; if not, please email
12 <[email protected]>. The license is also available online at
13 <http://quantlib.org/license.shtml>.
14
15 This program is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
20#include <ql/position.hpp>
21#include <ql/types.hpp>
22#include <ql/errors.hpp>
23
24namespace QuantLib {
25
26 std::ostream& operator<<(std::ostream& out, Position::Type p) {
27 switch (p) {
28 case Position::Long :
29 return out << "Long";
30 case Position::Short :
31 return out << "Short";
32 default:
33 QL_FAIL("unknown Position Type (" << Integer(p) << ")");
34 }
35 }
36
37}
38

source code of quantlib/ql/position.cpp

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.