What are the advantages and disadvantages of discounted cash flow methods such as NPV and IRR?

What are the advantages and disadvantages of discounted cash flow methods such as NPV and IRR?